<template>
    <div>
        <ul>
            <li v-for="(item, index) in todoList" :key="index">
                <img :src="item.img" alt="">
                <p>{{ item.name }}</p>
            </li>
        </ul>
    </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
    props: ["todoList"],
    setup() {


        return {}
    }
})
</script>

<style scoped>
ul {
    border-radius: 15px;
    width: 100%;
    height: 96%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}

ul li {
    width: 18%;
    height: 90px;
    text-align: center;

}

ul li img {
    width: 60px;
    height: 60px;
}
</style>